.class public Lcom/waiqin365/lightapp/chexiao/b/a/az;
.super Lcom/waiqin365/lightapp/chexiao/b/d;


# instance fields
.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:Lcom/waiqin365/lightapp/chexiao/c/q;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/16 v0, 0x88

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/chexiao/b/d;-><init>(I)V

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Z
    .locals 9

    const/4 v0, 0x1

    const/4 v2, 0x0

    const/4 v1, 0x0

    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v3, "code"

    invoke-virtual {v4, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_1

    const-string/jumbo v3, "code"

    invoke-virtual {v4, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->b:Ljava/lang/String;

    const-string/jumbo v3, "1"

    iget-object v5, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->b:Ljava/lang/String;

    invoke-virtual {v3, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    const-string/jumbo v3, "data"

    invoke-virtual {v4, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_2

    const-string/jumbo v3, "data"

    invoke-virtual {v4, v3}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v3

    if-nez v3, :cond_31

    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    move-object v6, v3

    :goto_0
    new-instance v3, Lcom/waiqin365/lightapp/chexiao/c/q;

    invoke-direct {v3}, Lcom/waiqin365/lightapp/chexiao/c/q;-><init>()V

    iput-object v3, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    iget-object v5, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "car_no"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_4

    const-string/jumbo v3, "car_no"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_1
    iput-object v3, v5, Lcom/waiqin365/lightapp/chexiao/c/q;->b:Ljava/lang/String;

    iget-object v5, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "code"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_5

    const-string/jumbo v3, "code"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_2
    iput-object v3, v5, Lcom/waiqin365/lightapp/chexiao/c/q;->d:Ljava/lang/String;

    iget-object v5, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "date"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_6

    const-string/jumbo v3, "date"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_3
    iput-object v3, v5, Lcom/waiqin365/lightapp/chexiao/c/q;->e:Ljava/lang/String;

    iget-object v5, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "remarks"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_7

    const-string/jumbo v3, "remarks"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_4
    iput-object v3, v5, Lcom/waiqin365/lightapp/chexiao/c/q;->f:Ljava/lang/String;

    iget-object v5, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "status"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_8

    const-string/jumbo v3, "status"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_5
    iput-object v3, v5, Lcom/waiqin365/lightapp/chexiao/c/q;->g:Ljava/lang/String;

    iget-object v5, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "emp_name"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_9

    const-string/jumbo v3, "emp_name"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_6
    iput-object v3, v5, Lcom/waiqin365/lightapp/chexiao/c/q;->h:Ljava/lang/String;

    iget-object v5, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "submit_time"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_a

    const-string/jumbo v3, "submit_time"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_7
    iput-object v3, v5, Lcom/waiqin365/lightapp/chexiao/c/q;->i:Ljava/lang/String;

    iget-object v5, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "confirm_emp_name"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_b

    const-string/jumbo v3, "confirm_emp_name"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_8
    iput-object v3, v5, Lcom/waiqin365/lightapp/chexiao/c/q;->j:Ljava/lang/String;

    iget-object v5, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "confirm_time"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_c

    const-string/jumbo v3, "confirm_time"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_9
    iput-object v3, v5, Lcom/waiqin365/lightapp/chexiao/c/q;->k:Ljava/lang/String;

    iget-object v5, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "cur_date_time"

    invoke-virtual {v4, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_d

    const-string/jumbo v3, "cur_date_time"

    invoke-virtual {v4, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_a
    iput-object v3, v5, Lcom/waiqin365/lightapp/chexiao/c/q;->m:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "modify_time"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_e

    const-string/jumbo v3, "modify_time"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_b
    iput-object v3, v4, Lcom/waiqin365/lightapp/chexiao/c/q;->l:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "prod_num"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_f

    const-string/jumbo v3, "prod_num"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_c
    iput-object v3, v4, Lcom/waiqin365/lightapp/chexiao/c/q;->n:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "change_prod_num"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_10

    const-string/jumbo v3, "change_prod_num"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_d
    iput-object v3, v4, Lcom/waiqin365/lightapp/chexiao/c/q;->o:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    const-string/jumbo v3, "return_prod_num"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_11

    const-string/jumbo v3, "return_prod_num"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_e
    iput-object v3, v4, Lcom/waiqin365/lightapp/chexiao/c/q;->p:Ljava/lang/String;

    const-string/jumbo v3, "prods"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_12

    const-string/jumbo v3, "prods"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    move-object v5, v3

    :goto_f
    if-eqz v5, :cond_1b

    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-lez v3, :cond_1b

    move v4, v1

    :goto_10
    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-ge v4, v3, :cond_1b

    invoke-virtual {v5, v4}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v7

    new-instance v8, Lcom/waiqin365/lightapp/product/d/c;

    invoke-direct {v8}, Lcom/waiqin365/lightapp/product/d/c;-><init>()V

    const-string/jumbo v3, "prod_id"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_13

    const-string/jumbo v3, "prod_id"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_11
    invoke-virtual {v8, v3}, Lcom/waiqin365/lightapp/product/d/c;->a(Ljava/lang/String;)V

    const-string/jumbo v3, "prod_name"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_14

    const-string/jumbo v3, "prod_name"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_12
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->a:Ljava/lang/String;

    const-string/jumbo v3, "spec"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_15

    const-string/jumbo v3, "spec"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_13
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->b:Ljava/lang/String;

    const-string/jumbo v3, "name_spec"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_16

    const-string/jumbo v3, "name_spec"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_14
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->c:Ljava/lang/String;

    const-string/jumbo v3, "prop_values"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_17

    const-string/jumbo v3, "prop_values"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_15
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->d:Ljava/lang/String;

    const-string/jumbo v3, "current_stock"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_18

    const-string/jumbo v3, "current_stock"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_16
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->f:Ljava/lang/String;

    const-string/jumbo v3, "actual_stock"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_19

    const-string/jumbo v3, "actual_stock"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_17
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->g:Ljava/lang/String;

    const-string/jumbo v3, "difference_stock"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_1a

    const-string/jumbo v3, "difference_stock"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_18
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->h:Ljava/lang/String;

    iget-object v3, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    iget-object v3, v3, Lcom/waiqin365/lightapp/chexiao/c/q;->q:Ljava/util/List;

    invoke-interface {v3, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->h:Ljava/lang/String;

    invoke-static {v3}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_0

    const-string/jumbo v3, "0"

    iget-object v7, v8, Lcom/waiqin365/lightapp/product/d/c;->h:Ljava/lang/String;

    invoke-virtual {v3, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    iget-object v3, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    iget-object v3, v3, Lcom/waiqin365/lightapp/chexiao/c/q;->t:Ljava/util/List;

    invoke-interface {v3, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v3, v4, 0x1

    move v4, v3

    goto/16 :goto_10

    :cond_1
    move v0, v1

    :cond_2
    :goto_19
    return v0

    :cond_3
    const-string/jumbo v2, "message"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    const-string/jumbo v2, "message"

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->c:Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_19

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    move v0, v1

    goto :goto_19

    :cond_4
    :try_start_1
    const-string/jumbo v3, ""

    goto/16 :goto_1

    :cond_5
    const-string/jumbo v3, ""

    goto/16 :goto_2

    :cond_6
    const-string/jumbo v3, ""

    goto/16 :goto_3

    :cond_7
    const-string/jumbo v3, ""

    goto/16 :goto_4

    :cond_8
    const-string/jumbo v3, ""

    goto/16 :goto_5

    :cond_9
    const-string/jumbo v3, ""

    goto/16 :goto_6

    :cond_a
    const-string/jumbo v3, ""

    goto/16 :goto_7

    :cond_b
    const-string/jumbo v3, ""

    goto/16 :goto_8

    :cond_c
    const-string/jumbo v3, ""

    goto/16 :goto_9

    :cond_d
    const-string/jumbo v3, ""

    goto/16 :goto_a

    :cond_e
    const-string/jumbo v3, ""

    goto/16 :goto_b

    :cond_f
    const-string/jumbo v3, ""

    goto/16 :goto_c

    :cond_10
    const-string/jumbo v3, ""

    goto/16 :goto_d

    :cond_11
    const-string/jumbo v3, ""

    goto/16 :goto_e

    :cond_12
    move-object v5, v2

    goto/16 :goto_f

    :cond_13
    const-string/jumbo v3, ""

    goto/16 :goto_11

    :cond_14
    const-string/jumbo v3, ""

    goto/16 :goto_12

    :cond_15
    const-string/jumbo v3, ""

    goto/16 :goto_13

    :cond_16
    const-string/jumbo v3, ""

    goto/16 :goto_14

    :cond_17
    const-string/jumbo v3, ""

    goto/16 :goto_15

    :cond_18
    const-string/jumbo v3, ""

    goto/16 :goto_16

    :cond_19
    const-string/jumbo v3, ""

    goto/16 :goto_17

    :cond_1a
    const-string/jumbo v3, ""

    goto/16 :goto_18

    :cond_1b
    const-string/jumbo v3, "change_prods"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_1d

    const-string/jumbo v3, "change_prods"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    move-object v5, v3

    :goto_1a
    if-eqz v5, :cond_26

    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-lez v3, :cond_26

    move v4, v1

    :goto_1b
    invoke-virtual {v5}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-ge v4, v3, :cond_26

    invoke-virtual {v5, v4}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v7

    new-instance v8, Lcom/waiqin365/lightapp/product/d/c;

    invoke-direct {v8}, Lcom/waiqin365/lightapp/product/d/c;-><init>()V

    const-string/jumbo v3, "prod_id"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_1e

    const-string/jumbo v3, "prod_id"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_1c
    invoke-virtual {v8, v3}, Lcom/waiqin365/lightapp/product/d/c;->a(Ljava/lang/String;)V

    const-string/jumbo v3, "prod_name"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_1f

    const-string/jumbo v3, "prod_name"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_1d
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->a:Ljava/lang/String;

    const-string/jumbo v3, "spec"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_20

    const-string/jumbo v3, "spec"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_1e
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->b:Ljava/lang/String;

    const-string/jumbo v3, "name_spec"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_21

    const-string/jumbo v3, "name_spec"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_1f
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->c:Ljava/lang/String;

    const-string/jumbo v3, "prop_values"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_22

    const-string/jumbo v3, "prop_values"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_20
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->d:Ljava/lang/String;

    const-string/jumbo v3, "current_stock"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_23

    const-string/jumbo v3, "current_stock"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_21
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->f:Ljava/lang/String;

    const-string/jumbo v3, "actual_stock"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_24

    const-string/jumbo v3, "actual_stock"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_22
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->g:Ljava/lang/String;

    const-string/jumbo v3, "difference_stock"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_25

    const-string/jumbo v3, "difference_stock"

    invoke-virtual {v7, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    :goto_23
    iput-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->h:Ljava/lang/String;

    iget-object v3, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    iget-object v3, v3, Lcom/waiqin365/lightapp/chexiao/c/q;->r:Ljava/util/List;

    invoke-interface {v3, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v3, v8, Lcom/waiqin365/lightapp/product/d/c;->h:Ljava/lang/String;

    invoke-static {v3}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_1c

    const-string/jumbo v3, "0"

    iget-object v7, v8, Lcom/waiqin365/lightapp/product/d/c;->h:Ljava/lang/String;

    invoke-virtual {v3, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_1c

    iget-object v3, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    iget-object v3, v3, Lcom/waiqin365/lightapp/chexiao/c/q;->u:Ljava/util/List;

    invoke-interface {v3, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_1c
    add-int/lit8 v3, v4, 0x1

    move v4, v3

    goto/16 :goto_1b

    :cond_1d
    move-object v5, v2

    goto/16 :goto_1a

    :cond_1e
    const-string/jumbo v3, ""

    goto/16 :goto_1c

    :cond_1f
    const-string/jumbo v3, ""

    goto/16 :goto_1d

    :cond_20
    const-string/jumbo v3, ""

    goto/16 :goto_1e

    :cond_21
    const-string/jumbo v3, ""

    goto/16 :goto_1f

    :cond_22
    const-string/jumbo v3, ""

    goto :goto_20

    :cond_23
    const-string/jumbo v3, ""

    goto :goto_21

    :cond_24
    const-string/jumbo v3, ""

    goto :goto_22

    :cond_25
    const-string/jumbo v3, ""

    goto :goto_23

    :cond_26
    const-string/jumbo v3, "return_prods"

    invoke-virtual {v6, v3}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_28

    const-string/jumbo v2, "return_prods"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    move-object v4, v2

    :goto_24
    if-eqz v4, :cond_2

    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-lez v2, :cond_2

    move v3, v1

    :goto_25
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v3, v2, :cond_2

    invoke-virtual {v4, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v5

    new-instance v6, Lcom/waiqin365/lightapp/product/d/c;

    invoke-direct {v6}, Lcom/waiqin365/lightapp/product/d/c;-><init>()V

    const-string/jumbo v2, "prod_id"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_29

    const-string/jumbo v2, "prod_id"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_26
    invoke-virtual {v6, v2}, Lcom/waiqin365/lightapp/product/d/c;->a(Ljava/lang/String;)V

    const-string/jumbo v2, "prod_name"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2a

    const-string/jumbo v2, "prod_name"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_27
    iput-object v2, v6, Lcom/waiqin365/lightapp/product/d/c;->a:Ljava/lang/String;

    const-string/jumbo v2, "spec"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2b

    const-string/jumbo v2, "spec"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_28
    iput-object v2, v6, Lcom/waiqin365/lightapp/product/d/c;->b:Ljava/lang/String;

    const-string/jumbo v2, "name_spec"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2c

    const-string/jumbo v2, "name_spec"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_29
    iput-object v2, v6, Lcom/waiqin365/lightapp/product/d/c;->c:Ljava/lang/String;

    const-string/jumbo v2, "prop_values"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2d

    const-string/jumbo v2, "prop_values"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_2a
    iput-object v2, v6, Lcom/waiqin365/lightapp/product/d/c;->d:Ljava/lang/String;

    const-string/jumbo v2, "current_stock"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2e

    const-string/jumbo v2, "current_stock"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_2b
    iput-object v2, v6, Lcom/waiqin365/lightapp/product/d/c;->f:Ljava/lang/String;

    const-string/jumbo v2, "actual_stock"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2f

    const-string/jumbo v2, "actual_stock"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_2c
    iput-object v2, v6, Lcom/waiqin365/lightapp/product/d/c;->g:Ljava/lang/String;

    const-string/jumbo v2, "difference_stock"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_30

    const-string/jumbo v2, "difference_stock"

    invoke-virtual {v5, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_2d
    iput-object v2, v6, Lcom/waiqin365/lightapp/product/d/c;->h:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    iget-object v2, v2, Lcom/waiqin365/lightapp/chexiao/c/q;->s:Ljava/util/List;

    invoke-interface {v2, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v2, v6, Lcom/waiqin365/lightapp/product/d/c;->h:Ljava/lang/String;

    invoke-static {v2}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_27

    const-string/jumbo v2, "0"

    iget-object v5, v6, Lcom/waiqin365/lightapp/product/d/c;->h:Ljava/lang/String;

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_27

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/b/a/az;->d:Lcom/waiqin365/lightapp/chexiao/c/q;

    iget-object v2, v2, Lcom/waiqin365/lightapp/chexiao/c/q;->v:Ljava/util/List;

    invoke-interface {v2, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_27
    add-int/lit8 v2, v3, 0x1

    move v3, v2

    goto/16 :goto_25

    :cond_28
    move-object v4, v2

    goto/16 :goto_24

    :cond_29
    const-string/jumbo v2, ""

    goto/16 :goto_26

    :cond_2a
    const-string/jumbo v2, ""

    goto/16 :goto_27

    :cond_2b
    const-string/jumbo v2, ""

    goto/16 :goto_28

    :cond_2c
    const-string/jumbo v2, ""

    goto/16 :goto_29

    :cond_2d
    const-string/jumbo v2, ""

    goto :goto_2a

    :cond_2e
    const-string/jumbo v2, ""

    goto :goto_2b

    :cond_2f
    const-string/jumbo v2, ""

    goto :goto_2c

    :cond_30
    const-string/jumbo v2, ""
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_2d

    :cond_31
    move-object v6, v3

    goto/16 :goto_0
.end method
